package day16_porxy;

import java.lang.reflect.Proxy;

/**
 * @author xinxing
 * @date 2023/2/6 16:35
 */
public class ProxyFactory {

    public static Object getProxy(Object object) {
        return Proxy.newProxyInstance(object.getClass().getClassLoader(), object.getClass().getInterfaces(), new JDKProxyHandler(object));
    }

}
